package request

// 添加线路
type AddRouteReq struct {
	UserId     int64  `json:"user_id" form:"user_id" `
	DriverId   int32  `json:"driver_id" form:"driver_id" `
	StartPoint string `json:"start_point" form:"start_point" binding:"required"`
	EndPoint   string `json:"end_point" form:"end_point" binding:"required"`
	RouteCode  string `json:"route_code" form:"route_code" binding:"required"`
	RouteName  string `json:"route_name" form:"route_name" binding:"required"`
	RouteTags  string `json:"route_tags" form:"route_tags" binding:"required"`
}

// 添加站点
type AddSiteReq struct {
	RouteId    int64   `json:"route_id" form:"route_id"`
	SiteName   string  `json:"site_name" form:"site_name" binding:"required"`
	SiteCode   string  `json:"site_code" form:"site_code" binding:"required"`
	Longitude  float64 `json:"longitude" form:"longitude" binding:"required"`
	Latitude   float64 `json:"latitude" form:"latitude" binding:"required"`
	ArriveTime int64   `json:"arrive_time" form:"arrive_time" binding:"required"`
}

// 线路展示
type GetRouterReq struct {
}

// 添加用户乘车
type AddRideRecordReq struct {
	UserId     int64  `json:"user_id" form:"user_id" `
	RouteId    int64  `json:"route_id" form:"route_id" `
	SiteId     int64  `json:"site_id" form:"site_id" `
	StartPoint string `json:"start_point" form:"start_point" `
	EndPoint   string `json:"end_point" form:"end_point" `
	Status     int64  `json:"status" form:"status" `
}
